x86: latch current->domain in do_physdev_op()
authorJan Beulich <jbeulich@suse.com>
Tue, 20 Jan 2015 09:46:19 +0000 (10:46 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 20 Jan 2015 09:46:19 +0000 (10:46 +0100)
commit209dd7e944af5ce69906fcfb8ded95926d34559d
tree86585fa60d253fd3852beaa3ee3b574db89c5419
parent0e5e324db9efcbf49635704884ecf545ee7ec84a
x86: latch current->domain in do_physdev_op()

... and drop global latching of current, as being needed more than once
only in PHYSDEVOP_set_iopl and PHYSDEVOP_set_iobitmap, and not at all
in all other cases.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/physdev.c